#ifndef AFX_CDLG_H
#define AFX_CDLG_H

#include "CProc.h"
#include "CWnd.h"

class CDlg : public CWnd {
  private:
    CProc m_proc;
  public:
    HWND Create(LPCTSTR lpTemplate, HWND hParent = NULL);
    HWND Create(UINT nIDTemplate, HWND hParent = NULL);
    INT_PTR CreateBox(LPCTSTR lpTemplate, HWND hParent = NULL);
    INT_PTR CreateBox(UINT nIDTemplate, HWND hParent = NULL);
    LONG GetBaseUnits();
    INT GetCtrlID(HWND hCtrl);
    HWND GetItem(int nIDItem);
    UINT SetItemInt(int nIDItem, UINT uValue, BOOL bSigned);
    UINT GetItemInt(int nIDItem, BOOL * lpResult, BOOL bSigned);
    UINT SetItemText(int nIDItem, LPTSTR lpString);
    UINT GetItemText(int nIDItem, LPTSTR lpString, int nMaxCount);
    HWND GetNextTabItem(HWND hCtrl, BOOL bPrevious);
    HWND GetNextGroupItem(HWND hCtrl, BOOL bPrevious);
    VOID MapRect(LPRECT lpRect);
  protected:
    virtual LRESULT OnInit(HWND hDefCtrl, LPARAM lParam);
    virtual LRESULT OnMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
};

#endif // AFX_CDLG_H
